include ( ../mythconfig.mak )
include ( ../settings.pro )
include ( config.pro)

!exists( config.pro ) {
   error(Missing config.pro: please run the configure script)
}

TEMPLATE = lib
CONFIG += plugin thread
TARGET = mythaudio
target.path = $${LIBDIR}/mythtv/plugins
INSTALLS += target

installfiles.path = $${PREFIX}/share/mythtv
installfiles.files = audio-settings.xml
uifiles.path = $${PREFIX}/share/mythtv/themes/default
uifiles.files = audio-ui.xml images/*.png

INSTALLS += installfiles uifiles

LIBS += -lmad -lid3tag -logg -lvorbisfile -lvorbis -lvorbisenc -lcdaudio -lFLAC
LIBS += -lmp3lame -lcdda_paranoia -lcdda_interface

# Input
HEADERS += AudioPlayer.h
HEADERS += cddecoder.h
HEADERS += constants.h
HEADERS += databasebox.h
HEADERS += decoder.h
HEADERS += flacdecoder.h
HEADERS += maddecoder.h
HEADERS += mainvisual.h
HEADERS += metadata.h
HEADERS += playbackbox.h
HEADERS += polygon.h
HEADERS += streaminput.h
HEADERS += visualize.h
HEADERS += avfdecoder.h
HEADERS += vorbisdecoder.h
HEADERS += polygon.h
HEADERS += globalsettings.h
HEADERS += metaio.h
HEADERS += metaioid3v2.h
HEADERS += vcedit.h
HEADERS += metaiooggvorbiscomment.h
HEADERS += metaioflacvorbiscomment.h
HEADERS += metaioavfcomment.h
HEADERS += metaio_libid3hack.h
HEADERS += genres.h
HEADERS += CharacterProcessor.h
HEADERS += ScanForAudio.h
HEADERS += md5.h

SOURCES += AudioPlayer.cpp
SOURCES += playbackbox.cpp
SOURCES += CharacterProcessor.cpp
SOURCES += ScanForAudio.cpp
SOURCES += cddecoder.cpp
SOURCES += decoder.cpp
SOURCES += flacdecoder.cpp
SOURCES += maddecoder.cpp
SOURCES += main.cpp
SOURCES += mainvisual.cpp
SOURCES += metadata.cpp
SOURCES += streaminput.cpp
SOURCES += vorbisdecoder.cpp
SOURCES += visualize.cpp
SOURCES += globalsettings.cpp
SOURCES += genres.cpp
SOURCES += metaio.cpp
SOURCES += metaioid3v2.cpp
SOURCES += vcedit.c
SOURCES += metaiooggvorbiscomment.cpp
SOURCES += metaioflacvorbiscomment.cpp
SOURCES += metaioavfcomment.cpp
SOURCES += metaio_libid3hack.c
SOURCES += avfdecoder.cpp
SOURCES += md5.c
